//
//  FristViewController.m
//  42centerTwo
//
//  Created by dragon on 15/10/22.
//  Copyright © 2015年 dragon. All rights reserved.
//

#import "FristViewController.h"

@interface FristViewController ()
@property (strong,nonatomic) UIScrollView *verticalScrollView;
@property (strong,nonatomic) UIScrollView *horizontaScrollView;

@end

@implementation FristViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIImageView * imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"backage_ground.jpg"]];
    UIImageView * himageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"backage_ground.jpg"]];
    //verticalScrollView 垂直试图滚动
    _verticalScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    _verticalScrollView.contentSize = CGSizeMake(self.view.frame.size.width , self.view.frame.size.height * 2);
    _verticalScrollView.backgroundColor = [UIColor whiteColor];
    [_verticalScrollView addSubview:imageView];
    [self.view addSubview:_verticalScrollView];

    
    //水平视图滚动horizontaScrollView
    _horizontaScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, (self.view.frame.size.height)/8, self.view.frame.size.width, self.view.frame.size.height/4)];
    _horizontaScrollView.contentSize = CGSizeMake(self.view.frame.size.width * 5, self.view.frame.size.height/4);
    [_horizontaScrollView addSubview:himageView];
    [imageView addSubview:_horizontaScrollView];
  
    
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
